.class public Lcom/instagram/android/login/c/a;
.super Ljava/lang/Object;
.source "LogoutHelper.java"


# static fields
.field private static final a:Ljava/lang/Class;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/lang/Class",
            "<*>;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 1

    .prologue
    .line 29
    const-class v0, Lcom/instagram/android/login/c/a;

    sput-object v0, Lcom/instagram/android/login/c/a;->a:Ljava/lang/Class;

    return-void
.end method

.method public constructor <init>()V
    .locals 0

    .prologue
    .line 27
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method

.method public static a()V
    .locals 1

    .prologue
    .line 44
    const-string v0, "MainTabActivity.BROADCAST_LOGOUT"

    invoke-static {v0}, Lcom/instagram/n/d;->a(Ljava/lang/String;)Z

    .line 45
    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    .line 35
    sget-object v0, Lcom/instagram/android/login/c/a;->a:Ljava/lang/Class;

    const-string v1, "Logout forced by server."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->a(Ljava/lang/Class;Ljava/lang/String;)V

    .line 36
    invoke-static {p0}, Lcom/instagram/android/login/c/a;->b(Landroid/content/Context;)V

    .line 37
    invoke-static {}, Lcom/instagram/android/login/c/a;->a()V

    .line 38
    return-void
.end method

.method public static b(Landroid/content/Context;)V
    .locals 2
    .parameter

    .prologue
    const/4 v1, 0x1

    .line 52
    invoke-static {}, Lcom/instagram/service/PersistentCookieStore;->a()Lcom/instagram/service/PersistentCookieStore;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/PersistentCookieStore;->b()V

    .line 53
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->e()V

    .line 56
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    invoke-interface {v0}, Lcom/instagram/b/c;->a()V

    .line 59
    invoke-static {}, Lcom/instagram/h/a/a;->a()V

    .line 62
    invoke-static {}, Lcom/instagram/m/b/a;->a()Lcom/instagram/m/b/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/b/a;->i()V

    .line 63
    invoke-static {}, Lcom/instagram/android/service/AutoCompleteHashtagService;->a()V

    .line 64
    invoke-static {}, Lcom/instagram/m/b/a;->b()V

    .line 67
    new-instance v0, Lcom/instagram/android/service/q;

    invoke-direct {v0}, Lcom/instagram/android/service/q;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/android/service/q;->a(Z)V

    .line 68
    new-instance v0, Lcom/instagram/android/service/a;

    invoke-direct {v0}, Lcom/instagram/android/service/a;-><init>()V

    invoke-virtual {v0, v1}, Lcom/instagram/android/service/a;->a(Z)V

    .line 71
    invoke-static {}, Lcom/instagram/android/g/b;->j()V

    .line 74
    invoke-static {p0}, Landroid/webkit/CookieSyncManager;->createInstance(Landroid/content/Context;)Landroid/webkit/CookieSyncManager;

    .line 75
    invoke-static {}, Landroid/webkit/CookieManager;->getInstance()Landroid/webkit/CookieManager;

    move-result-object v0

    invoke-virtual {v0}, Landroid/webkit/CookieManager;->removeAllCookie()V

    .line 78
    invoke-static {p0}, Lcom/instagram/android/fragment/dw;->b(Landroid/content/Context;)Ljava/io/File;

    move-result-object v0

    .line 79
    invoke-virtual {v0}, Ljava/io/File;->exists()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 80
    invoke-virtual {v0}, Ljava/io/File;->delete()Z

    .line 84
    :cond_0
    invoke-static {}, Lcom/instagram/android/directshare/d/s;->a()Lcom/instagram/android/directshare/d/s;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/directshare/d/s;->f()V

    .line 87
    invoke-static {}, Lcom/instagram/android/c2dm/k;->a()Lcom/instagram/android/c2dm/k;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/c2dm/k;->b()V

    .line 88
    return-void
.end method
